﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true"
    CodeFile="GuestBook_List.aspx.cs" Inherits="Manage_GuestBook_List" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #guest_list_table
        {
            width: 99%;
            border-collapse: collapse;
            empty-cells: show;
            margin-left: 8px;
            margin-top: 10px;
            margin-bottom: 20px;
        }
        #guest_list_table tr
        {
            background: #ededed;
        }
        #guest_list_table tr td
        {
            border: #d8d8d8 1px solid;
            vertical-align: middle;
        }
        #list_body table
        {
            background-color: White;
            width: 100%;
            margin-bottom: 20px;
            border-collapse: collapse;
            empty-cells: show;
            
        }
        #list_body table tr
        {
            background-color: #f6f6f6;
        }
        #list_body table .td_left
        {
            width: 70px;
        }
        #list_body table td
        {
            height: 25px;
            border: 1px solid #dddddd;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table id="guest_list_table">
        <tr style="height: 25px; background: url('images/tt_x.gif') repeat-x;">
            <td style="padding-left: 8px;">
                留言板管理
            </td>
        </tr>
        <tr>
            <td id="list_body">
                <asp:Repeater ID="guest_list_rp" runat="server" OnItemCommand="guest_list_rp_ItemCommand">
                    <ItemTemplate>
                        <table>
                            <tr>
                                <td class="td_left">
                                    姓　　名：
                                </td>
                                <td>
                                    <asp:HiddenField ID="id_hf" runat="server" Value='<%# Eval("id")%>' />
                                    <%# Eval("Name")%>
                                    <span style="display: inline-block; text-align: right; float: right;">
                                        <%# Eval("theDate")%></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left">
                                    留言内容：
                                </td>
                                <td style="line-height: 150%; padding-top: 5px; padding-bottom: 5px;">
                                    <asp:TextBox ID="Content_tb" runat="server" TextMode="MultiLine" Text='<%# Eval("Content")%>' style=" width:95%; height:80px;" ></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_left">
                                    回　　复：
                                </td>
                                <td>
                                    <asp:TextBox ID="Reply_tb" runat="server" TextMode="MultiLine" Text='<%# Eval("Reply")%>' style=" width:95%; height:80px;"></asp:TextBox>
                                    <span style="display: inline-block; text-align: left; float: left; padding-top:5px; padding-left:15px;">
                                        IP ：<a href="http://ip.chinaz.com/?IP=<%# Eval("ip")%>" target="_blank"><%# Eval("ip")%></a>
                                    </span>
                                    <span style="display: inline-block; text-align: right; float: right;">
                                        <asp:CheckBox ID="ToTop_cb" runat="server" Checked='<%# Convert.ToInt32( Eval("IsTop"))==1?true:false%>' Text="留言置顶" />
                                        <asp:Button ID="reply_btn" runat="server" CommandName="reply" Text="回复" />
                                        <asp:Button ID="del_btn" runat="server" CommandName="del" Text="删除"  OnClientClick="return confirm('确定删除留言吗!!\n删除后将不能回复留言!!!!');" style=" color:Red;"/>
                                    </span>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:Repeater>
                <span style="position: relative; width: 550px; left: 50%; margin-left: -275px; margin-top: 25px;
                    display: block;">
                    <asp:LinkButton ID="toone" runat="server" OnClick="toone_Click">[首页]</asp:LinkButton>
                    <asp:LinkButton ID="toup" runat="server" OnClick="toup_Click">[上一页]</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="tonext" runat="server" OnClick="tonext_Click">[下一页]</asp:LinkButton>
                    <asp:LinkButton ID="tolast" runat="server" OnClick="tolast_Click">[尾页]</asp:LinkButton>&nbsp;
                    [跳转到第
                    <asp:DropDownList ID="jumppage" runat="server" OnSelectedIndexChanged="jumppage_SelectedIndexChanged"
                        AutoPostBack="true" Style="height: 20px; margin-left: 3px; margin-bottom: -3px;">
                    </asp:DropDownList>
                    页]&nbsp;&nbsp; [页次:<asp:Label ID="curpage" runat="server" ForeColor="red"></asp:Label>
                    /
                    <asp:Label ID="sumpage" runat="server" Text="Label"></asp:Label>页] [共<asp:Label ID="pagesum"
                        runat="server" Text="Label" ForeColor="red"></asp:Label>项
                    <asp:Label ID="tpagesizes" runat="server" Text="Label" ForeColor="red"></asp:Label>项/页]
                </span>
            </td>
        </tr>
    </table>
</asp:Content>
